<template>
  <div id="app">
    <el-container style="height: 100vh">
      <!-- 左侧菜单栏 -->
      <el-aside width="200px" style="background-color: #304156">
        <el-menu
          :default-active="$route.path"
          router
          background-color="#304156"
          text-color="#bfcbd9"
          active-text-color="#409eff"
          style="border-right: none"
        >
          <div style="padding: 20px; text-align: center; color: #fff; font-size: 18px; font-weight: bold;">
            网络调试助手
          </div>
          
          <el-menu-item index="/net">
            <el-icon><Connection /></el-icon>
            <span>网络调试</span>
          </el-menu-item>
          
          <el-menu-item index="/serial">
            <el-icon><Monitor /></el-icon>
            <span>串口调试</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      
      <!-- 主内容区域 -->
      <el-main style="background-color: #f0f2f5; padding: 0">
        <router-view />
      </el-main>
    </el-container>
  </div>
</template>

<script setup>
import { Connection, Monitor } from '@element-plus/icons-vue'
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#app {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

.el-menu {
  height: 100vh;
}
</style>